import request from '@/utils/request'

// 获取商户列表 - 分页
export function GetMerchantListPaging(params) {
    return request({url: '/cloudApi/merchant/merchant/getMerchantList', method: 'get', params})
}

// 供应商审核列表
export function GetMerchantReviewPaging(params) {
    return request({url: '/cloudApi/merchant/merchant/getSupplierAuditList', method: 'get', params})
}

// 修改分销供应商审核状态
export function ChangeMerchantReviewStatus(data) {
    return request({url: '/cloudApi/merchant/merchant/supplierAudit', method: 'post', data})
}

// 查询商户的详情信息
export function GetMerchantDetail(params) {
    return request({url: '/cloudApi/merchant/merchant/getByMchId', method: 'get', params})
}

// 新增商户详情
export function AddMerchant(data) {
    return request({url: '/cloudApi/merchant/merchant/saveMerchant', method: 'post', data})
}

// 编辑商户的信息
export function EditMerchant(data) {
    return request({url: '/cloudApi/merchant/merchant/updateMerchant', method: 'post', data})
}

// 门店列表
export function GetMerchantShopList(params) {
    return request({url: '/cloudApi/merchant/store/getStoreList', method: 'get', params})
}

// 门店详情
export function GetMerchantShopDetail(params) {
    return request({url: '/cloudApi/merchant/store/getById', method: 'get', params})
}

// 设备列表
export function GetMerchantDeviceList(params) {
    return request({url: '/cloudApi/merchant/equipment/getEquipmentList', method: 'get', params})
}

// 新增设备
export function AddMerchantDevice(data) {
    return request({url: '/cloudApi/merchant/equipment/saveEquipment', method: 'post', data})
}

// 编辑设备
export function UpdateMerchantDevice(data) {
    return request({url: '/cloudApi/merchant/equipment/updateEquipment', method: 'post', data})
}

// 删除设备
export function DeleteMerchantDevice(data) {
    return request({url: '/cloudApi/merchant/equipment/removeEquipment', method: 'post', data})
}

// 商户收益
export function GetMerchantIncomePaging(params) {
    return request({url: '/cloudApi/merchant/account/getAccountList', method: 'get', params})
}
